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

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

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

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

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7); /* Only for darkening, not changing color */
  position: absolute;
  top: 0;
  left: 0;
}

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

.page-about__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

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

.page-about__section-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: justify;
}

.page-about__image-and-text-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__image-and-text-grid .page-about__image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 800px; /* HTML width */
  height: 600px; /* HTML height */
  object-fit: cover;
}

.page-about__image-and-text-grid .page-about__section-text {
  flex: 1;
  max-width: 50%;
  margin: 0;
}

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__card-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-about__card-image {
  width: 100%;
  height: 250px; /* Example fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  width: 600px; /* HTML width */
  height: 400px; /* HTML height */
}

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

.page-about__value-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
}

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

.page-about__value-description {
  font-size: 0.95em;
  line-height: 1.6;
}

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

.page-about__choice-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__choice-image {
  width: 100%;
  max-width: 300px;
  height: 200px; /* Example fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 400px; /* HTML width */
  height: 300px; /* HTML height */
}

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

.page-about__choice-description {
  font-size: 1em;
  line-height: 1.7;
}

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

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

.page-about__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__image-and-text-grid {
    flex-direction: column;
  }
  .page-about__image-and-text-grid .page-about__image,
  .page-about__image-and-text-grid .page-about__section-text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-cta-group,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__cta-title {
    font-size: 2.2em;
  }
  .page-about__card-image,
  .page-about__choice-image {
    height: auto; /* Allow auto height for responsive images */
  }

  /* IMPORTANT: Mobile content area images must be constrained */
  .page-about img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Ensure images fit without overflow */
  }
  /* Specific image overrides to ensure min-size or max-width 100% and height auto */
  .page-about__image-and-text-grid .page-about__image,
  .page-about__card-image,
  .page-about__choice-image {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section,
  .page-about__cta-section {
    padding: 60px 15px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__card,
  .page-about__value-item,
  .page-about__choice-item {
    padding: 20px;
  }
}