/* style/about.css */

/* CSS Variables for colors */
:root {
  --primary-color: #007bff; /* Deep Blue */
  --secondary-color: #28a745; /* Green */
  --accent-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa; /* Light background for contrast */
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: #ffffff; /* Explicitly white for content areas */
  overflow-x: hidden; /* Prevent horizontal scroll for the main content */
}

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

/* Section Styling */
.page-about__hero-section,
.page-about__intro-section,
.page-about__why-choose,
.page-about__responsible-gaming,
.page-about__faq-section,
.page-about__contact-cta {
  padding: 80px 0;
  text-align: center;
}

.page-about__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--text-light);
  padding-top: calc(80px + var(--header-offset, 120px)); /* Add header offset */
  position: relative;
  z-index: 1;
}

.page-about__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-about__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 40px;
  color: inherit;
}

.page-about__dark-bg .page-about__section-title {
  color: var(--text-light);
}

.page-about__light-bg .page-about__section-title {
  color: var(--text-dark);
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

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

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-about__btn-primary:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: var(--accent-color);
  color: var(--text-dark);
}

.page-about__btn-secondary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-about__intro-section .page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__intro-section .page-about__image-wrapper {
  flex: 1;
  min-width: 400px;
}

.page-about__intro-section .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-about__intro-section .page-about__text-content {
  flex: 1.5;
}

.page-about__intro-section .page-about__text-content p {
  margin-bottom: 15px;
  font-size: 17px;
}

/* Mission & Values Section */
.page-about__mission-values {
  padding: 100px 0;
}

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

.page-about__value-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-about__value-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: var(--accent-color);
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}
.page-about__value-item h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-about__value-item p {
  font-size: 16px;
  color: var(--text-light);
}

/* Why Choose Section */
.page-about__why-choose .page-about__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-about__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-about__feature-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__feature-item p {
  font-size: 16px;
  color: var(--text-dark);
}

.page-about__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 100px 0;
  text-align: center;
}

.page-about__responsible-gaming .page-about__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__responsible-gaming p {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-about__responsible-btn {
  margin-top: 30px;
  background-color: var(--accent-color);
  color: var(--text-dark);
}

.page-about__responsible-btn:hover {
  background-color: #e6c200;
  color: var(--text-dark);
}

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

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  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.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

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

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

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