.page-about {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure 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; /* Main color for hero background */
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Accent color for title */
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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;
  min-width: 180px; /* Ensure buttons are not too small */
  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 {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-height: 400px; /* Ensure hero image is large enough */
}

.page-about__story-section, .page-about__mission-section, .page-about__advantages-section, .page-about__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-about__story-section {
  background-color: #f8f8f8;
}

.page-about__heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #000000;
  font-weight: bold;
}

.page-about__story-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-about__story-text {
  flex: 1;
  min-width: 300px;
}

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

.page-about__story-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__story-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  min-width: 400px; /* Ensure image is large enough */
  min-height: 300px;
}

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

.page-about__mission-card {
  background-color: #000000;
  color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-about__mission-card:hover {
  transform: translateY(-10px);
}

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

.page-about__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-about__advantage-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-about__advantage-item:hover {
  transform: translateY(-10px);
}

.page-about__advantage-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure image is large enough */
  min-height: 200px;
}

.page-about__advantage-title {
  font-size: 1.4em;
  color: #000000;
  padding: 15px 20px 5px;
}

.page-about__advantage-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
}

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

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

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

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

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

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

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

  .page-about__button {
    width: 100%;
    max-width: 280px;
  }

  .page-about__story-content {
    flex-direction: column;
  }

  .page-about__story-image-wrapper {
    min-width: unset;
  }

  .page-about__story-image {
    min-width: unset;
    min-height: unset;
  }

  .page-about__hero-image {
    min-height: 250px;
  }

  .page-about__heading {
    font-size: 2em;
  }

  .page-about__mission-grid, .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure all images within .page-about are responsive and do not overflow */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
  .page-about__advantage-image {
    height: auto; /* Allow height to adjust for responsiveness */
  }
}

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

  .page-about__heading {
    font-size: 1.8em;
  }

  .page-about__button {
    font-size: 1em;
    padding: 12px 25px;
  }
}