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

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

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

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

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

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

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #F0F0F0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-about__hero-button:hover {
  background-color: #E0A73B;
}

.page-about__our-story-section,
.page-about__mission-values-section,
.page-about__why-choose-us-section,
.page-about__responsible-gaming-section,
.page-about__cta-section {
  padding: 60px 0;
}

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

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

.page-about__story-content p {
  flex: 1;
  min-width: 300px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__story-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure image fills its flex container */
  height: auto;
  min-height: 200px; /* Enforce min-height */
}

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

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

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

.page-about__value-card p,
.page-about__feature-item p {
  color: #555555;
}

.page-about__features-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Enforce min-height */
}

.page-about__responsible-gaming-section p {
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: 1.1em;
  color: #333333;
}

.page-about__button {
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
  background-color: #000000; /* Main color for buttons */
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

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

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

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

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

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

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

.page-about__cta-button--register:hover {
  background-color: #E0E0E0;
}

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

.page-about__cta-button--login:hover {
  background-color: #E0A73B;
}

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

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

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

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

  .page-about__values-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .page-about {
    overflow-x: hidden;
  }
}