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

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Gold color for main titles */
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-about__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__description-small {
  font-size: 16px;
  text-align: center;
  margin-bottom: 25px;
  color: #cccccc;
}

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

/* Color contrast variants */
.page-about__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333;
}

.page-about__light-bg p,
.page-about__light-bg li,
.page-about__light-bg .page-about__description-small {
  color: #555555;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared has body padding-top, so this is 0 */
  margin-top: 0;
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 600px; /* Fixed height for desktop hero */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no color filters */
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__main-title {
  font-size: 42px;
  margin-bottom: 25px;
  color: #FFD700;
  line-height: 1.2;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background-color: #FFD700;
  color: #0a0a0a; /* Dark text for gold background */
  border-color: #FFD700;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #0a0a0a;
}

.page-about__btn-link {
  background-color: #8B0000;
  color: #ffffff;
  border-color: #8B0000;
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 15px;
}

.page-about__btn-link:hover {
  background-color: #6a0000;
  border-color: #6a0000;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
}

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

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

.page-about__image-content {
  flex: 1;
  text-align: center;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  filter: none; /* Ensure no color filters */
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__feature-card h3 {
  color: #FFD700;
  font-size: 22px;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  color: #f0f0f0;
  font-size: 16px;
}

.page-about__feature-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  filter: none; /* Ensure no color filters */
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

/* Games Overview Section */
.page-about__games-overview-section {
  padding: 80px 0;
}

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

.page-about__game-category-card {
  background-color: #ffffff; /* White background for game cards */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for white background */
}

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

.page-about__game-category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  filter: none; /* Ensure no color filters */
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

.page-about__game-category-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #8B0000; /* Red for game titles */
}

.page-about__game-category-card p {
  font-size: 15px;
  color: #555555;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly different background for question */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #8B0000;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.05); /* Even lighter background for answer */
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-about__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 80px 0;
  text-align: center;
}


/* --- Responsive Styles --- */

/* Tablet (1024px) */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 32px;
  }

  .page-about__main-title {
    font-size: 36px;
  }

  .page-about__sub-title {
    font-size: 22px;
  }

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

  .page-about__features-grid,
  .page-about__games-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  /* General mobile styles */
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: 30px;
    margin-bottom: 20px;
  }

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

  .page-about__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-about__description-small {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 0 !important; /* Ensure no double padding */
  }
  
  .page-about__hero-image {
    height: 300px !important; /* Adjust height for mobile */
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Introduction Section */
  .page-about__introduction-section {
    padding: 60px 0;
  }

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

  /* Buttons - Mobile specific */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Mission & Vision Section */
  .page-about__mission-vision-section {
    padding: 60px 0;
  }

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

  .page-about__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Why Choose Us Section */
  .page-about__why-choose-us-section {
    padding: 60px 0;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-about__feature-card {
    padding: 25px;
  }

  .page-about__feature-card h3 {
    font-size: 20px;
  }

  .page-about__feature-card p {
    font-size: 15px;
  }

  .page-about__feature-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Games Overview Section */
  .page-about__games-overview-section {
    padding: 60px 0;
  }

  .page-about__games-gallery {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-about__game-category-card {
    padding: 15px;
  }

  .page-about__game-category-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
    height: 180px !important; /* Adjust height for mobile game cards */
  }

  .page-about__game-category-title {
    font-size: 18px;
  }

  /* FAQ Section */
  .page-about__faq-section {
    padding: 60px 0;
  }

  .page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px); /* Adjust width to make space for toggle */
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
    margin-left: 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

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

  /* Contact CTA Section */
  .page-about__contact-cta-section {
    padding: 60px 0;
  }

  /* Universal image responsive styles for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensure containers also adapt */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-container,
  .page-about__content-flex,
  .page-about__features-grid,
  .page-about__games-gallery,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* LOGO轮播项 (not present on this page, but required if it were) */
  /* .page-about__logo-item { */
  /*   width: 80px !important; */
  /*   height: 80px !important; */
  /*   max-width: 80px !important; */
  /*   box-sizing: border-box; */
  /* } */
}