/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a1a2e), so text must be light */
  background-color: transparent; /* Inherit from shared.css body */
}

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

.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-about__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

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

.page-about__content-section,
.page-about__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Ensure dark background for content sections */
  color: #ffffff;
}

.page-about__values-section,
.page-about__security-section,
.page-about__commitment-section,
.page-about__cta-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color for distinct sections */
  color: #ffffff;
}

.page-about__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
}

.page-about__sub-title {
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #FFFF00; /* Highlight important sub-titles */
}

.page-about__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__value-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00;
}

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

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

.page-about__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-about__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__game-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

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

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

.page-about__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-about__faq-list {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Brand color for FAQ question */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background-color: #028e47;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(0deg); /* No rotation for '-' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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 content */
  padding: 15px 20px;
}

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

.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #017439; /* Brand color for CTA section */
  color: #ffffff;
}

/* Links in content */
.page-about a {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-about a:hover {
  color: #fff;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.2em;
  }

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

  .page-about__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 0 15px;
  }

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

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

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-about__content-section,
  .page-about__values-section,
  .page-about__security-section,
  .page-about__commitment-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 1.6em;
    margin-bottom: 25px;
  }

  .page-about__sub-title {
    font-size: 1.2em;
  }

  .page-about__values-grid,
  .page-about__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__faq-item {
    margin-left: 0;
    margin-right: 0;
  }

  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__content-section,
  .page-about__values-section,
  .page-about__security-section,
  .page-about__team-section,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Ensure images in content area are not smaller than 200px display-wise */
  .page-about__content-area img {
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  .page-about__game-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.5em;
  }

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

  .page-about__sub-title {
    font-size: 1.1em;
  }

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