.page-about {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
}

.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  color: #FFFFFF;
}

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

.page-about__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-about__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 8px;
  display: inline-block;
}

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

.page-about__intro-text {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

.page-about__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
}

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

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

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

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

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

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

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__story-section, .page-about__values-section, .page-about__offerings-section, .page-about__responsible-gaming-section, .page-about__cta-section, .page-about__contact-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-about__story-section:nth-of-type(odd), .page-about__values-section:nth-of-type(odd), .page-about__offerings-section:nth-of-type(odd), .page-about__responsible-gaming-section:nth-of-type(odd), .page-about__cta-section:nth-of-type(odd), .page-about__contact-section:nth-of-type(odd) {
  background-color: #FFFFFF;
}

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

.page-about__story-image {
  flex: 1 1 45%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-about__text-block {
  flex: 1 1 45%;
  line-height: 1.8;
  font-size: 1.1em;
  color: #333333;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

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

.page-about__value-card, .page-about__offering-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover, .page-about__offering-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-about__value-icon, .page-about__offering-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Adjust max-width to fit card */
  margin: 0 auto 20px;
  border-radius: 5px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__value-description, .page-about__offering-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
}

.page-about__offering-card .page-about__button {
  margin-top: auto;
}

.page-about__responsible-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1em;
  color: #333333;
}

.page-about__responsible-content p {
  margin-bottom: 20px;
}

.page-about__button--primary {
  background-color: #000000;
  color: #FFFFFF;
}

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

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

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

.page-about__cta-section .page-about__section-title::after {
  background-color: #FCBC45;
}

.page-about__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-about__button--large {
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-about__button--download {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-about__contact-section {
  text-align: center;
}

.page-about__contact-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #333333;
}

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

.page-about__button--secondary {
  background-color: #555555;
  color: #FFFFFF;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__hero-actions {
    flex-direction: column;
  }
  .page-about__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-about__story-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-about__story-image, .page-about__text-block {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .page-about__values-grid, .page-about__offerings-grid {
    grid-template-columns: 1fr;
  }
  .page-about__hero-section {
    min-height: 400px;
  }

  /* Mobile content image constraint */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
  .page-about__story-image,
  .page-about__value-icon,
  .page-about__offering-image {
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-about__hero-content {
    padding: 20px;
  }
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__cta-description {
    font-size: 1.1em;
  }
  .page-about__button--large {
    font-size: 1em;
    padding: 12px 25px;
  }
}