/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background #f4f4f4 */
  background-color: #f4f4f4; /* Ensures consistency, though body handles main background */
}

/* Header offset for fixed header */
.page-about {
  padding-top: var(--header-offset, 120px);
}

/* Sections */
.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for general container padding */
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #1a0033;
  margin-bottom: 30px;
  font-weight: bold;
}

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

/* Dark background section */
.page-about__dark-section {
  background-color: #1a0033;
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
  color: #ffcc00; /* Gold title on dark background */
}

.page-about__dark-section .page-about__text-block {
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #1a0033; /* Fallback/base color */
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff;
}

.page-about__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffcc00;
  line-height: 1.2;
  font-weight: 800;
}

.page-about__intro-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #ffcc00;
  color: #1a0033;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

.page-about__cta-button:hover {
  background: #e6b800;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.6);
}

/* Mission & Vision Section */
.page-about__mission-vision {
  background-color: #f9f9f9;
}

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

.page-about__value-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-about__value-item:hover {
  transform: translateY(-10px);
}

.page-about__value-title {
  font-size: 1.6em;
  color: #1a0033;
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.page-about__value-title::before {
  content: '★'; /* Simple icon */
  color: #ffcc00;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: 0;
}

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

.page-about__image-full {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Security Section */
.page-about__security-commitment {
  background-color: #1a0033;
}

.page-about__security-features {
  list-style: none;
  padding: 0;
  margin: 30px auto 50px;
  max-width: 700px;
  text-align: left;
}

.page-about__feature-item {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-about__feature-item::before {
  content: '✓';
  color: #ffcc00;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
}

.page-about__image-center {
  width: 100%;
  height: auto;
  max-width: 800px; /* Specific max-width for content images */
  display: block;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Buttons (General) */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-about__btn-primary {
  background: #ffcc00;
  color: #1a0033;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(255, 204, 0, 0.3);
}

.page-about__btn-primary:hover {
  background: #e6b800;
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.5);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: #ffcc00;
  border: 2px solid #ffcc00;
  box-shadow: 0 3px 10px rgba(255, 204, 0, 0.2);
}

.page-about__btn-secondary:hover {
  background: #ffcc00;
  color: #1a0033;
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
  transform: translateY(-2px);
}

/* Entertainment Experience Section */
.page-about__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-about__game-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 150px; /* Ensure cards have some height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

.page-about__card-title {
  font-size: 1.4em;
  color: #1a0033;
  margin-bottom: 10px;
}

.page-about__card-title a {
  color: #1a0033;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__card-title a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

.page-about__card-description {
  font-size: 0.95em;
  color: #666666;
}

/* Customer Support Section */
.page-about__customer-support {
  background-color: #1a0033;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  background-color: #f9f9f9;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #f4f4f4;
}

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 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.3s ease;
  padding: 0 20px;
  opacity: 0;
  background: #ffffff;
  color: #555555;
}

/* FAQ展开状态 - ⚠️ 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* ⚠️ 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
}

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

.page-about__faq-item.active .page-about__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #ffcc00; /* Highlight active question */
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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;
  border-radius: 50%;
  background-color: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__intro-description {
    font-size: 1.1em;
  }
  .page-about__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Header offset for fixed header on mobile */
  .page-about {
    padding-top: var(--header-offset, 120px) !important; /* Override desktop padding if needed, but shared should handle this */
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-about__intro-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-image {
    border-radius: 4px;
  }

  /* Images responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsiveness */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .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;
  }
  .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;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-about__values-grid,
  .page-about__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__value-item,
  .page-about__game-card {
    padding: 20px;
  }
  .page-about__value-title {
    font-size: 1.4em;
  }
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 1.1em;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}