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

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

.page-about__section--padded {
  padding: 60px 0;
}

.page-about__section--dark-bg {
  background-color: #000000; /* Main color as dark background */
  color: #FFFFFF; /* Light text for dark background */
}

.page-about__section-title {
  font-size: 3em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-about__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__text--light {
  color: #F0F0F0;
}

.page-about__button {
  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, color 0.3s ease;
  margin: 10px;
  text-align: center;
}

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

.page-about__button--register:hover {
  background-color: #F0F0F0;
}

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

.page-about__button--login:hover {
  background-color: #E0A83A;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  background-color: #000000; /* Fallback for image */
}

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

.page-about__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6; /* Slightly dim image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

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

.page-about__hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Story Section */
.page-about__story-section .page-about__text {
  margin-bottom: 30px;
}

.page-about__image-wrapper {
  margin: 40px auto;
  text-align: center;
}

.page-about__image-wrapper img {
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure images are responsive */
  height: auto;
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Mission & Vision Section */
.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__mission-card,
.page-about__vision-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-about__card-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #000000;
}

.page-about__card-title--light {
  color: #FFFFFF;
}

/* Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #E0E0E0;
}

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

/* Why Choose Section */
.page-about__why-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__why-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-about__why-item::before {
  content: '✔';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  background-color: #F8F8F8;
}

.page-about__cta-container {
  max-width: 900px;
}

.page-about__cta-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__image-wrapper--cta {
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__mission-vision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__section--padded {
    padding: 40px 0;
  }
  .page-about__button {
    width: 100%;
    margin: 10px 0;
  }
  .page-about__hero-actions {
    flex-direction: column;
  }
  .page-about__image-wrapper img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  /* Ensure all content area images are responsive and do not cause overflow */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__text {
    font-size: 1em;
  }
  .page-about__card-title,
  .page-about__value-title {
    font-size: 1.3em;
  }
}