/* style/about.css */

/* Base styles for the About Us page content */
.page-about {
  background-color: transparent; /* Body background from shared.css is #121212 */
  color: #ffffff; /* Default text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  line-height: 1.2;
}

.page-about__section-title--light {
  color: #ffffff;
}

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

.page-about__section-description--light {
  color: #e0e0e0;
}

.page-about__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color for card titles */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-about__text-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* CTA Buttons */
.page-about__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button--primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #0A2463; /* Primary color for text */
  border-color: #FFD700;
}

.page-about__cta-button--primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
  color: #0A2463;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.page-about__cta-button--secondary {
  background-color: transparent;
  color: #FFD700; /* Auxiliary color for text */
  border-color: #FFD700;
}

.page-about__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  border-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Image Block styles */
.page-about__image-block {
  margin-top: 50px;
  text-align: center;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  /* Ensure min size for content images */
  min-width: 200px;
  min-height: 200px;
}

/* Hero Intro Section */
.page-about__hero-intro-section {
  padding-top: 60px; /* Assuming shared.css handles body padding, this adds content specific top padding */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #0A2463, #1a3a7a); /* Dark gradient for hero */
}

.page-about__hero-intro-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__hero-intro-content {
  flex: 1;
  text-align: left;
}

.page-about__hero-intro-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 800;
}

.page-about__hero-intro-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-about__hero-intro-image {
  flex: 1;
  text-align: right;
}

.page-about__hero-intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: block;
}

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

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

.page-about__mission-vision-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__mission-vision-card p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 80px 0;
  background-color: #0A2463; /* Primary brand color for background */
}

.page-about__why-choose-section .page-about__section-title {
  color: #FFD700;
}

.page-about__why-choose-section .page-about__section-description {
  color: #e0e0e0;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-about__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__game-card p {
  margin-bottom: 20px;
  font-size: 16px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-about__responsible-gaming-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-about__responsible-gaming-text {
  flex: 1;
  color: #f0f0f0;
}

.page-about__responsible-gaming-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__responsible-gaming-text li {
  margin-bottom: 10px;
  font-size: 16px;
  position: relative;
  padding-left: 25px;
}

.page-about__responsible-gaming-text li::before {
  content: '•';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
}

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

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

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* For dark background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.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 15px;
  opacity: 0;
  color: #e0e0e0;
  font-size: 16px;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 215, 0, 0.1); /* Lighter background for answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A2463; /* Primary color for question background */
  border: 1px solid #1a3a7a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-about__faq-question:hover {
  background: #1a3a7a;
  border-color: #FFD700;
}

.page-about__faq-question:active {
  background: #0A2463;
}

/* 问题标题样式 */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700; /* Auxiliary color for question text */
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or rotate */
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A2463; /* Primary brand color */
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-intro-container {
    flex-direction: column;
    text-align: center;
  }

  .page-about__hero-intro-content {
    text-align: center;
  }

  .page-about__hero-intro-image {
    text-align: center;
    margin-top: 30px;
  }

  .page-about__hero-intro-title {
    font-size: 42px;
  }

  .page-about__mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .page-about__responsible-gaming-content {
    flex-direction: column;
  }

  .page-about__responsible-gaming-image {
    margin-top: 30px;
  }
}

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

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 30px;
    margin-bottom: 20px;
    padding-top: 30px;
  }

  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

  /* Hero Intro */
  .page-about__hero-intro-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

  .page-about__hero-intro-description {
    font-size: 18px;
  }

  /* Sections padding */
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__games-portfolio-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  /* Feature Grid */
  .page-about__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Games Grid */
  .page-about__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__image-block img {
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important;
  }

  /* Buttons */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-about__cta-button {
    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;
  }

  /* FAQ mobile */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
    color: #FFD700; /* Ensure visibility on mobile */
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
    color: #FFD700; /* Ensure visibility on mobile */
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}