.page-about {
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--bg); /* Dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-bg {
  background-color: var(--card-bg);
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-about__description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
}

.page-about__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-top: -80px; /* Pull content up over image slightly */
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-about__hero-content .page-about__description {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.page-about__btn--large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__text-block h3 {
  color: var(--text-main);
  font-size: 24px;
  margin-bottom: 15px;
}

.page-about__text-block p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Mission Vision Cards */
.page-about__content-wrapper {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__card-title {
  color: var(--text-main);
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card p {
  color: var(--text-secondary);
}

/* Core Values */
.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: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-about__value-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__value-title {
  color: var(--text-main);
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-about__game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-about__game-title {
  color: var(--text-main);
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-about__game-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  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: 20px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: bold;
  font-size: 18px;
  background-color: #11271B; /* Darker background for question */
  border-bottom: 1px solid var(--divider);
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question::marker {
  display: none;
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold);
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--divider);
}

.page-about__faq-answer {
  padding: 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

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

.page-about__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
}

.page-about__cta-section .page-about__description {
  margin-bottom: 30px;
}

.page-about__cta-section .page-about__btn-primary {
  margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
    text-align: center;
  }

  .page-about__content-grid--reverse {
    flex-direction: column;
  }

  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-about__hero-content {
    margin-top: -40px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 6vw, 48px);
  }

  .page-about__hero-content .page-about__description {
    font-size: 16px;
  }

  .page-about__card {
    min-width: unset;
    max-width: 100%;
  }

  .page-about__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-about__description {
    font-size: 16px;
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__game-grid,
  .page-about__faq-list,
  .page-about__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  /* Mobile button responsiveness */
  .page-about__btn-primary,
  .page-about__btn--large,
  .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;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

  .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;
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-about__hero-content {
    margin-top: -20px;
    padding: 20px 15px;
  }

  .page-about__game-image {
    height: 150px;
  }

  .page-about__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-about__faq-answer {
    font-size: 14px;
    padding: 15px;
  }
}