.page-about {
  color: #333333; /* Dark text for light body background */
}

.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
  background-color: #000000; /* Main color as hero background for text contrast */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

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

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  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: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__hero-button:hover {
  background-color: #e0a53a;
  transform: translateY(-3px);
}

.page-about__story-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  gap: 40px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-about__story-content {
  flex: 1;
}

.page-about__story-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 25px;
}

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

.page-about__story-image {
  flex: 0 0 500px; /* Ensure image is large enough */
  width: 500px;
  height: 375px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__mission-vision-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
}

.page-about__mission-card,
.page-about__vision-card {
  background-color: #000000;
  color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1 1 45%; /* Allow cards to grow but maintain minimum width */
  min-width: 300px; /* Ensure cards are large enough */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__mission-icon,
.page-about__vision-icon {
  width: 250px;
  height: 187px;
  object-fit: contain;
  margin-bottom: 25px;
}

.page-about__mission-title,
.page-about__vision-title {
  font-size: 2em;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-about__mission-text,
.page-about__vision-text {
  font-size: 1.05em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-about__values-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-about__values-heading {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 40px;
}

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

.page-about__value-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px; /* Ensure cards are large enough */
}

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

.page-about__value-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 15px;
}

.page-about__value-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-about__value-link:hover {
  color: #e0a53a;
}

.page-about__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 60px 0;
}

.page-about__cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-about__cta-title {
  font-size: 3em;
  margin-bottom: 25px;
  color: #FCBC45;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__cta-text {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

.page-about__cta-button--login:hover {
  background-color: #e0a53a;
  transform: translateY(-3px);
}

.page-about__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

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

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

  .page-about__story-image {
    flex: none;
    width: 100%;
    height: auto;
    max-width: 600px;
    margin-top: 30px;
  }

  .page-about__mission-card,
  .page-about__vision-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }

  .page-about__hero-description,
  .page-about__story-text,
  .page-about__mission-text,
  .page-about__vision-text,
  .page-about__value-description,
  .page-about__cta-text {
    font-size: 1em;
  }

  .page-about__story-title,
  .page-about__values-heading {
    font-size: 2em;
  }

  .page-about__mission-title,
  .page-about__vision-title {
    font-size: 1.8em;
  }

  .page-about__value-title {
    font-size: 1.3em;
  }

  .page-about__cta-title {
    font-size: 2.5em;
  }

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

  .page-about__cta-button {
    width: 100%;
    max-width: 300px;
  }

  .page-about__hero-section,
  .page-about__story-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__cta-section {
    padding: 30px 15px;
  }

  /* Mobile content area images must not overflow */
  .page-about img {
    max-width: 100%;
    height: auto;
  }

  .page-about__story-image,
  .page-about__mission-icon,
  .page-about__vision-icon,
  .page-about__cta-image {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Adjust object-fit for smaller screens if needed */
  }

  .page-about__mission-icon, .page-about__vision-icon {
    width: 200px;
    height: 150px;
  }

  .page-about__story-image {
    width: 100%;
    height: auto;
  }

  .page-about__cta-image {
    width: 100%;
    height: auto;
  }
}

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

  .page-about__story-title,
  .page-about__values-heading {
    font-size: 1.8em;
  }

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