.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #26A9E0; /* Primary brand color for hero */
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-about__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-about__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-about__btn {
  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, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Background color based on body background */
.page-about__dark-bg {
  background-color: #000000; /* Match body background */
  color: #ffffff; /* Light text for dark background */
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__section-description,
.page-about__dark-bg .page-about__card-title a,
.page-about__dark-bg .page-about__faq-title {
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__section-description,
.page-about__light-bg .page-about__card-title a,
.page-about__light-bg .page-about__faq-title {
  color: #333333;
}

.page-about__mission-vision-section,
.page-about__values-section,
.page-about__security-section,
.page-about__game-library-section,
.page-about__social-responsibility-section,
.page-about__team-future-section,
.page-about__video-section,
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-about__grid-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #26A9E0; /* Brand color for sub-titles */
}

.page-about__text {
  font-size: 1em;
  margin-bottom: 15px;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-about__value-icon {
  width: 100px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  max-width: 100%;
}

.page-about__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #26A9E0; /* Brand color for card titles */
}

.page-about__card-title a {
  color: #26A9E0; /* Ensure link color in card title is visible */
  text-decoration: none;
}

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

.page-about__card-text {
  font-size: 0.95em;
  flex-grow: 1;
}

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

.page-about__security-text {
  flex: 1;
}

.page-about__security-image {
  flex: 1;
  text-align: center;
}

.page-about__security-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-about__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-about__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__flex-item {
  flex: 1;
}

.page-about__flex-item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
}

.page-about__video-wrapper .page-about__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #26A9E0; /* Primary brand color for question */
  color: #ffffff;
  font-weight: bold;
  border-radius: 8px;
}

.page-about__faq-question:hover {
  background-color: #1e87b7;
}

.page-about__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer on dark theme */
  color: #ffffff;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 15px 20px;
}

.page-about__faq-answer p {
  margin: 0 0 10px 0;
  font-size: 0.95em;
}

.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.4em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid,
  .page-about__security-content,
  .page-about__content-flex {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .page-about__values-grid,
  .page-about__game-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__security-section,
  .page-about__game-library-section,
  .page-about__social-responsibility-section,
  .page-about__team-future-section,
  .page-about__video-section,
  .page-about__faq-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
  }
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__btn {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__content-grid,
  .page-about__security-content,
  .page-about__content-flex {
    gap: 30px;
  }
  .page-about__values-grid,
  .page-about__game-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct padding-top on mobile */
  }
  .page-about__video-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Mobile button responsiveness */
  .page-about__btn,
  .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;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  /* Content area image CSS dimensions lower bound */
  /* This is handled by the general .page-about img rule above, ensuring min-width/height 200px */
}