.page-about {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* body handles global background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__dark-section {
  background-color: #1A202C; /* Main brand color for dark sections */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__hero-intro-section {
  padding-top: 100px; /* Adjust for visual balance below header offset */
  padding-bottom: 100px;
  text-align: center;
}

.page-about__main-heading {
  font-size: 48px;
  font-weight: 700;
  color: #FFD700; /* Accent color for main heading */
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 20px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #FFD700; /* Accent color */
  color: #1A202C; /* Main brand color for text */
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Accent color */
  border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-about__section-heading {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #FFD700; /* Accent color for section headings */
}

.page-about__mission-values-section {
  padding: 80px 0;
  background-color: #0d1117; /* Dark background for contrast */
  color: #f0f0f0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-about__content-grid--reverse .page-about__text-block {
  order: 2;
}

.page-about__content-grid--reverse .page-about__image-block {
  order: 1;
}

.page-about__text-block p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px;
}

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

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__value-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__value-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-about__why-choose-section {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-icon img {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px auto;
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-about__game-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__game-list li {
  margin-bottom: 8px;
}

.page-about__game-list li a,
.page-about__btn-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-about__game-list li a:hover,
.page-about__btn-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #0d1117;
  color: #f0f0f0;
  text-align: center;
}

.page-about__responsible-gaming-section p {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 17px;
  line-height: 1.7;
}

.page-about__future-vision-section {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #0d1117;
  color: #f0f0f0;
}

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* 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;
  padding: 0 15px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  color: #e0e0e0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  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: rgba(255, 255, 255, 0.1); /* Slightly lighter background for question */
  border: 1px solid rgba(255, 255, 255, 0.2);
  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: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

.page-about__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

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

/* 切换图标 */
.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: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

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

@media (max-width: 1024px) {
  .page-about__main-heading {
    font-size: 40px;
  }

  .page-about__section-heading {
    font-size: 32px;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__content-grid--reverse .page-about__text-block {
    order: unset;
  }
  .page-about__content-grid--reverse .page-about__image-block {
    order: unset;
  }

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

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

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

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-intro-section,
  .page-about__mission-values-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__future-vision-section,
  .page-about__faq-section {
    padding: 60px 0;
  }

  .page-about__container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-about__main-heading {
    font-size: 32px;
    margin-bottom: 20px;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  .page-about__section-heading {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .page-about__text-block p {
    font-size: 16px;
  }

  .page-about__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__values-list,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

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

  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !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;
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none; /* No CSS filter to change image color */
}