.page-about {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-about__hero-container {
  position: relative;
  width: 100%;
  max-width: 100%; /* Prevent horizontal overflow */
  margin: 0 auto;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 90%;
  padding: 20px;
}

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

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-about__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
  font-size: 1.1em;
}

.page-about__hero-button--register {
  background-color: #FFFFFF; /* Register button background */
  color: #000000; /* Dark text for white background */
  border: 2px solid #FFFFFF;
}

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

.page-about__hero-button--games {
  background-color: #FCBC45; /* Login/secondary button background */
  color: #000000; /* Dark text for yellow background */
  border: 2px solid #FCBC45;
}

.page-about__hero-button--games:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

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

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45; /* Accent color for underline */
  border-radius: 2px;
}

.page-about__subsection-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.page-about__paragraph {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure content images are not too small */
  min-height: 200px;
}

.page-about__story-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-about__story-content .page-about__paragraph {
  max-width: 800px;
  text-align: center;
}

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

.page-about__value-card {
  background-color: #FFFFFF; /* White background for cards */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-icon {
  width: 200px; /* Minimum size for content images */
  height: auto;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-about__advantage-item {
  background-color: #f8f8f8; /* Light gray background for advantage items */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-about__advantage-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain image width within card */
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

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

.page-about__button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
}

.page-about__button--promo,
.page-about__button--support,
.page-about__button--payments {
  background-color: #FCBC45;
  color: #000000;
  border: 1px solid #FCBC45;
}

.page-about__button--promo:hover,
.page-about__button--support:hover,
.page-about__button--payments:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

.page-about__cta-section .page-about__section-title,
.page-about__cta-section .page-about__paragraph {
  color: #FFFFFF;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
}

.page-about__cta-button--register {
  background-color: #FFFFFF; /* Register button background */
  color: #000000; /* Dark text for white background */
  border: 2px solid #FFFFFF;
}

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

.page-about__cta-button--login {
  background-color: #FCBC45; /* Login button background */
  color: #000000; /* Dark text for yellow background */
  border: 2px solid #FCBC45;
}

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

.page-about__cta-button--download {
  background-color: transparent;
  color: #FCBC45;
  border: 2px solid #FCBC45;
}

.page-about__cta-button--download:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-about__cta-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin: 40px auto 0;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__subsection-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__hero-button {
    width: 80%;
    margin: 0 auto;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__subsection-title {
    font-size: 1.4em;
  }
  .page-about__paragraph {
    font-size: 1em;
  }
  .page-about__values-grid,
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-about__image, .page-about__value-icon, .page-about__advantage-image, .page-about__cta-image {
    max-width: 100%;
    height: auto; /* Ensure mobile images don't overflow */
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    width: 80%;
    margin: 0 auto;
  }
  /* Ensure all content images in .page-about do not cause horizontal scroll */
  .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: 0.9em;
  }
  .page-about__hero-button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__subsection-title {
    font-size: 1.2em;
  }
  .page-about__container {
    padding: 20px 15px;
  }
  .page-about__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
}