.page-about {
  color: #ffffff; /* Text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background: linear-gradient(135deg, #017439, #0a0a0a);
  overflow: hidden;
}

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

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

.page-about__btn-primary {
  display: inline-block;
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  background-color: #e02020;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  display: inline-block;
  background: #FFFFFF;
  color: #017439;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #017439;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.page-about__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__mission-values-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #FFFFFF;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

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

.page-about__image-block {
  text-align: center;
}

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

.page-about__subsection-title {
  font-size: 2em;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-about__value-heading {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-item p {
  color: #f0f0f0;
}

.page-about__games-section {
  padding: 60px 0;
  background-color: #017439; /* Brand primary color for dark section */
  color: #FFFFFF;
}

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

.page-about__games-section .page-about__section-description {
  color: #f0f0f0;
}

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

.page-about__game-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-about__game-title {
  font-size: 1.5em;
  color: #FFFFFF;
  margin: 20px 0 10px;
  padding: 0 15px;
  font-weight: bold;
}

.page-about__game-title a {
  color: #FFFFFF;
  text-decoration: none;
}

.page-about__game-title a:hover {
  text-decoration: underline;
}

.page-about__game-text {
  padding: 0 15px 20px;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-about__game-card .page-about__btn-secondary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
  box-sizing: border-box;
}

.page-about__security-support-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #FFFFFF;
}

.page-about__security-support-section .page-about__section-title {
  color: #017439;
}

.page-about__security-support-section .page-about__subsection-title {
  color: #FFFFFF;
  text-align: left;
}

.page-about__security-support-section .page-about__text-block p {
  color: #f0f0f0;
}

.page-about__responsible-gaming-section {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-about__responsible-gaming-section .page-about__text-block p {
  color: #f0f0f0;
}

.page-about__vision-cta-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  text-align: center;
  color: #FFFFFF;
}

.page-about__vision-cta-section .page-about__section-title {
  color: #017439;
}

.page-about__vision-cta-section .page-about__section-description {
  color: #f0f0f0;
}

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

.page-about__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #FFFFFF;
}

.page-about__faq-section .page-about__section-title {
  color: #017439;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-heading {
  font-size: 1.2em;
  color: #FFFFFF;
  margin: 0;
  font-weight: bold;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for toggle */
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

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

  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  
  .page-about__content-grid--reverse {
    grid-template-columns: 1fr;
  }

  .page-about__content-grid .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens for default grid */
  }
  
  .page-about__content-grid--reverse .page-about__image-block {
    order: 0; /* Image appears below text for reverse grid */
  }
  
  .page-about__values-list, .page-about__game-categories {
    grid-template-columns: 1fr;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-about__btn-primary, .page-about__btn-secondary {
    width: 100%;
    max-width: 300px; /* Constrain button width */
    margin-left: auto;
    margin-right: auto;
  }
}

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

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

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

  .page-about__subsection-title {
    font-size: 1.5em;
  }

  .page-about__value-heading {
    font-size: 1.3em;
  }

  /* Mobile responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive containers for images */
  .page-about__section, .page-about__card, .page-about__container, .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile responsive buttons */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  /* Video section padding for mobile */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

/* Ensure content images are not too small */
.page-about__image,
.page-about__game-image {
  min-width: 200px;
  min-height: 200px;
}

/* Contrast fixes for specific elements if needed */
.page-about p, .page-about li {
  color: #f0f0f0; /* Ensure light text on dark body background */
}

.page-about__hero-section {
  background: linear-gradient(135deg, #017439, #0a0a0a); /* Dark gradient background */
}

.page-about__dark-section {
  background: #017439; /* Brand primary dark background */
  color: #ffffff;
}