/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background #FFFFFF */
  background-color: #ffffff;
}

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

.page-about__top-section {
  background-color: #f8f8f8;
  padding-top: 10px; /* Small top padding, body padding-top is handled by shared.css */
  padding-bottom: 40px;
  text-align: center;
}

.page-about__main-title {
  color: #017439;
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__top-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn--register:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

.page-about__btn--login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-about__btn--primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

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

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

.page-about__btn--secondary:hover {
  background-color: #f0f0f0;
  border-color: #005a2e;
}

.page-about__section {
  padding: 50px 0;
}

.page-about__section--mission-vision {
  background-color: #ffffff;
}

.page-about__section--why-choose {
  background-color: #f8f8f8;
}

.page-about__section--team-culture {
  background-color: #ffffff;
}

.page-about__section--future {
  background-color: #e6f7ed;
  text-align: center;
}

.page-about__section--faq {
  background-color: #f8f8f8;
}

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

.page-about__sub-title {
  color: #017439;
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about p {
  margin-bottom: 1em;
  font-size: 1.05em;
}

.page-about__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-about__list-item {
  margin-bottom: 0.5em;
  font-size: 1.05em;
}

.page-about__list-item a {
  color: #017439;
  text-decoration: underline;
}

.page-about__list-item a:hover {
  color: #005a2e;
}

.page-about__list--games {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.page-about__list--games .page-about__list-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-about__image-container {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.page-about__image-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #017439;
  font-size: 1.1em;
  position: relative;
  list-style: none;
}

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

.page-about__faq-item[open] > .page-about__faq-question .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  pointer-events: none; /* Prevent click on + from interfering with summary click */
}

.page-about__faq-answer {
  padding: 0 20px 15px;
  color: #555;
  font-size: 1em;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

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

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

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

@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-about__top-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

  .page-about__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 10px;
  }

  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__top-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  .page-about__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
    font-size: 0.95em;
  }

  /* 2. Single column long text container */
  .page-about__section {
    padding: 30px 0;
  }

  .page-about__wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-about__sub-title {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-about p,
  .page-about__list-item {
    font-size: 0.95em;
  }

  /* 3. General images and figure */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-container {
    margin: 20px auto !important;
    padding: 0 !important; /* Remove any padding that might cause overflow */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 4. Buttons and button containers */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 5. FAQ blocks */
  .page-about__faq-item {
    margin-bottom: 10px;
  }

  .page-about__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-about__faq-answer {
    padding: 0 15px 12px;
    font-size: 0.9em;
  }
}