.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__section {
  padding: 80px 0;
}

.page-about__section--dark {
  background-color: #000000; /* Main color for dark sections */
  color: #ffffff; /* Light text for dark background */
}

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

.page-about__section-title--light {
  color: #ffffff;
}

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

.page-about__section-paragraph--light {
  color: #f0f0f0;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__image--centered {
  margin: 40px auto;
}

.page-about__image--left {
  margin-right: 40px;
}

.page-about__image--right {
  margin-left: 40px;
}

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

.page-about__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-about__button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

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

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh; /* Minimum height for hero */
  padding: 0;
  background-color: #000000; /* Fallback 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;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1.2;
}

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

.page-about__hero-button {
  margin: 10px;
}

/* Mission Section */
.page-about__mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-about__mission-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__mission-card-title {
  font-size: 1.8em;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-about__mission-card-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: left;
  margin: 0;
}

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

.page-about__value-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-about__value-description {
  font-size: 1em;
  color: #555555;
}

/* Why Choose Section */
.page-about__why-choose-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-about__why-choose-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
}

/* Security & Responsible Gaming Sections */
.page-about__security-content,
.page-about__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__security-text,
.page-about__responsible-gaming-text {
  flex: 1;
}

.page-about__security-content .page-about__image,
.page-about__responsible-gaming-content .page-about__image {
  flex: 1;
  min-width: 200px; /* Ensure images are not too small */
}

.page-about__security-content .page-about__section-paragraph {
  text-align: left;
  margin: 0 0 30px 0;
}

.page-about__responsible-gaming-content .page-about__section-paragraph {
  text-align: left;
  margin: 0 0 30px 0;
}

/* CTA Section */
.page-about__cta-container {
  text-align: center;
  padding: 60px 20px;
}

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

/* Contact Section */
.page-about__contact-container {
  text-align: center;
  padding: 60px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__mission-grid {
    grid-template-columns: 1fr;
  }
  .page-about__security-content,
  .page-about__responsible-gaming-content {
    flex-direction: column;
  }
  .page-about__image--left,
  .page-about__image--right {
    margin: 40px auto;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 60px 0;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__section-paragraph {
    font-size: 1em;
  }
  .page-about__hero-button {
    display: block;
    margin: 10px auto;
  }
  .page-about__cta-buttons {
    flex-direction: column;
  }
  .page-about__hero-section {
    min-height: 50vh;
  }
  /* Mobile content area image overflow prevention */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-about__container {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__mission-card-title {
    font-size: 1.5em;
  }
  .page-about__value-title {
    font-size: 1.3em;
  }
  .page-about__button {
    padding: 12px 20px;
    font-size: 1em;
  }
}