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

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

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0 40px;
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* White text for dark background */
  position: relative;
  overflow: hidden;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FCBC45; /* Login button color for emphasis */
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-about__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;
  border: none;
  cursor: pointer;
}

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

.page-about__btn--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-about__btn--login:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay effect */
  display: block;
}

/* Story Section */
.page-about__story-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  text-align: center;
}

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

.page-about__story-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-about__story-image-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.page-about__story-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Mission Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-about__mission-card,
.page-about__vision-card {
  background-color: #000000;
  color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-about__card-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #FCBC45;
  position: relative;
  z-index: 2;
}

.page-about__card-text {
  font-size: 1.05em;
  opacity: 0.9;
  max-width: 450px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.page-about__card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 1;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #f0f0f0;
  text-align: center;
}

.page-about__values-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 50px;
}

.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);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-about__value-icon {
  width: 100%; /* Adjust to fit card, but ensure min-width */
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

.page-about__value-heading {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 10px;
}

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

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

.page-about__cta-title {
  font-size: 2.8em;
  color: #FCBC45;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.15em;
  max-width: 900px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.page-about__btn--join {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 8px;
}

.page-about__btn--join:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__story-title,
  .page-about__mission-vision-title,
  .page-about__values-title,
  .page-about__cta-title {
    font-size: 2.4em;
  }
  .page-about__mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .page-about__value-icon {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 0 20px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-about__story-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__cta-section {
    padding: 60px 0;
  }
  .page-about__story-title,
  .page-about__mission-vision-title,
  .page-about__values-title,
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__value-heading {
    font-size: 1.5em;
  }
  .page-about__mission-card,
  .page-about__vision-card {
    padding: 30px;
  }
  .page-about__card-title {
    font-size: 1.8em;
  }
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile content area image overflow prevention */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
  .page-about__story-image,
  .page-about__card-icon,
  .page-about__value-icon {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__story-title,
  .page-about__mission-vision-title,
  .page-about__values-title,
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__btn {
    width: 90%;
  }
}