/* Base styles for the FAQ page */
.page-support-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default white */
}

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

.page-support-faq__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 40px;
  font-weight: bold;
}

/* Hero Section */
.page-support-faq__hero-section {
  position: relative;
  padding: 100px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Assumes shared.css handles body padding-top */
}

.page-support-faq__hero-section .page-support-faq__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-support-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-support-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  opacity: 0.9;
}

.page-support-faq__hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-support-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

/* Buttons */
.page-support-faq__btn-primary,
.page-support-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support-faq__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-support-faq__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-support-faq__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-support-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
}

/* FAQ Grid */
.page-support-faq__faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 50px;
}

.page-support-faq__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-support-faq__faq-item.active {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-support-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-support-faq__faq-question:hover {
  background-color: #f0f0f0;
}

.page-support-faq__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333333;
}

.page-support-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-support-faq__faq-item.active .page-support-faq__faq-toggle {
  transform: rotate(0deg);
}

.page-support-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-support-faq__faq-item.active .page-support-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-support-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-support-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-support-faq__faq-answer a:hover {
  color: #1e87b7;
}

.page-support-faq__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

/* Section specific styling */
.page-support-faq__overview-section,
.page-support-faq__transaction-section,
.page-support-faq__promotions-section,
.page-support-faq__policy-section {
  padding: 60px 0;
}

.page-support-faq__account-section,
.page-support-faq__games-section,
.page-support-faq__support-section,
.page-support-faq__other-faq-section {
  padding: 60px 0;
}

/* Color contrast classes */
.page-support-faq__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-support-faq__dark-section .page-support-faq__section-title,
.page-support-faq__dark-section .page-support-faq__faq-question h3 {
  color: #ffffff;
}

.page-support-faq__dark-section .page-support-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-support-faq__dark-section .page-support-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-support-faq__dark-section .page-support-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-support-faq__dark-section .page-support-faq__faq-toggle {
  color: #ffffff;
}

.page-support-faq__dark-section .page-support-faq__faq-answer {
  color: #f0f0f0;
}

.page-support-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-support-faq__light-bg .page-support-faq__section-title {
  color: #26A9E0;
}

.page-support-faq__light-bg .page-support-faq__faq-item {
  background-color: #ffffff;
  border-color: #e0e0e0;
}

.page-support-faq__light-bg .page-support-faq__faq-question {
  background-color: #f9f9f9;
  color: #333333;
}

.page-support-faq__light-bg .page-support-faq__faq-toggle {
  color: #26A9E0;
}

.page-support-faq__light-bg .page-support-faq__faq-answer {
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support-faq__hero-title {
    font-size: 3em;
  }

  .page-support-faq__hero-description {
    font-size: 1.1em;
  }

  .page-support-faq__section-title {
    font-size: 2em;
  }

  .page-support-faq__faq-question,
  .page-support-faq__faq-question h3 {
    font-size: 1.1em;
  }

  .page-support-faq__faq-toggle {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-support-faq {
    font-size: 16px;
    line-height: 1.6;
  }

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

  /* HERO 主图区域 */
  .page-support-faq__hero-section {
    padding: 60px 0 !important;
    min-height: 400px !important;
  }

  .page-support-faq__hero-section .page-support-faq__container {
    min-height: 300px !important;
  }

  .page-support-faq__hero-title {
    font-size: 2.2em !important;
    margin-bottom: 15px !important;
  }

  .page-support-faq__hero-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }

  .page-support-faq__hero-cta {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-support-faq__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
    padding-top: 30px !important;
  }

  /* LOGO 轮播区域 - Not present in this page, but if it were: */
  /* .page-support-faq__logo-carousel-section { padding: 30px 0; } */
  /* .page-support-faq__logo-carousel { justify-content: center; } */
  /* .page-support-faq__logo-item { width: 80px !important; height: 80px !important; max-width: 80px !important; margin: 0 10px; } */

  /* 游戏展示区域 - Not present as a distinct section, but applies to content images */
  /* .page-support-faq__games-section { padding: 40px 0; } */
  /* .page-support-faq__games-grid { grid-template-columns: 1fr !important; } */

  /* 通用图片与容器 */
  .page-support-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure content sections are responsive */
  .page-support-faq__overview-section,
  .page-support-faq__account-section,
  .page-support-faq__transaction-section,
  .page-support-faq__games-section,
  .page-support-faq__promotions-section,
  .page-support-faq__support-section,
  .page-support-faq__policy-section,
  .page-support-faq__other-faq-section {
    padding: 40px 0 !important;
  }

  /* 按钮与按钮容器 */
  .page-support-faq__btn-primary,
  .page-support-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-support-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* 其他内容模块 (FAQ items) */
  .page-support-faq__faq-item {
    margin-bottom: 15px !important;
  }

  .page-support-faq__faq-question {
    padding: 15px 20px !important;
  }

  .page-support-faq__faq-question h3 {
    font-size: 1.1em !important;
  }

  .page-support-faq__faq-answer {
    padding: 15px 20px !important;
  }
}