/* General styles for the support page */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background: #140C0C; /* Background */
}

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

.page-support__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold */
}

.page-support__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF1E8;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  background: linear-gradient(180deg, #C61F1F 0%, #E53030 100%); /* Main and Accent color gradient */
  padding-bottom: 50px; /* Space for content below image */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

.page-support__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-support__hero-content {
  text-align: center;
  padding: 0 20px;
}

.page-support__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 20px;
  color: #FFF1E8;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

.page-support__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button custom color */
  color: #ffffff;
  border: none;
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background: transparent;
  color: #FFB04A; /* Gold-like from button gradient */
  border: 2px solid #FFB04A;
}

.page-support__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C; /* Background color for contrast */
  transform: translateY(-2px);
}

/* Contact Section */
.page-support__contact-section {
  padding: 80px 0;
  background: #140C0C; /* Background */
}

.page-support__dark-section {
  background: #140C0C; /* Background */
}

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

.page-support__contact-card {
  background: #2A1212; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF1E8; /* Text Main */
}

.page-support__contact-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-support__contact-card .page-support__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-support__contact-card p {
  font-size: 16px;
  color: #FFF1E8;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-support__email-link {
  color: #FFB04A;
  text-decoration: underline;
}

.page-support__email-link:hover {
  color: #F3C54D;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background: #140C0C; /* Background */
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border custom color */
  overflow: hidden;
  background: #2A1212; /* Card BG */
}
details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF1E8; /* Text Main */
}
details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: #2A1212; /* Slightly darker hover */
  border-color: #7E0D0D; /* Deep Red */
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold */
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04A; /* Gold-like from button gradient */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #140C0C; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8; /* Text Main */
  font-size: 16px;
}

/* Guide Section */
.page-support__guide-section {
  padding: 80px 0;
  background: #140C0C; /* Background */
}

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

.page-support__guide-card {
  background: #2A1212; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #FFF1E8; /* Text Main */
}

.page-support__guide-card .page-support__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-support__guide-card p {
  font-size: 16px;
  color: #FFF1E8;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
  padding: 80px 0;
  background: #140C0C; /* Background */
}

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

.page-support__responsible-gaming-content img {
  flex-shrink: 0;
  width: 50%;
  max-width: 600px; /* Limit image width */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-support__responsible-gaming-text {
  flex-grow: 1;
  color: #FFF1E8;
}

.page-support__responsible-gaming-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

.page-support__responsible-gaming-text ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 30px;
}

.page-support__responsible-gaming-text li {
  font-size: 16px;
  margin-bottom: 10px;
}

/* Policies Section */
.page-support__policies-section {
  padding: 80px 0;
  background: #140C0C; /* Background */
}

.page-support__policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-support__policy-link {
  display: inline-block;
  padding: 12px 25px;
  border: 1px solid #FFB04A; /* Gold-like from button gradient */
  border-radius: 5px;
  text-decoration: none;
  color: #FFB04A; /* Gold-like from button gradient */
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
}

.page-support__policy-link:hover {
  background: #FFB04A;
  color: #140C0C; /* Background color for contrast */
}

/* Final CTA Section */
.page-support__cta-final-section {
  padding: 80px 0;
  background: #140C0C; /* Background */
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 40px;
  }
  .page-support__hero-description {
    font-size: 18px;
  }
  .page-support__section-title {
    font-size: 30px;
  }
  .page-support__section-description {
    font-size: 16px;
  }
  .page-support__contact-card img,
  .page-support__guide-card img {
    max-width: 80%;
  }
  .page-support__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }
  .page-support__responsible-gaming-content img {
    width: 80%;
    max-width: 700px;
  }
  .page-support__responsible-gaming-text ul {
    text-align: left;
    margin: 0 auto 30px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-support__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-support__hero-image {
    max-height: 300px;
  }
  .page-support__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__main-title {
    font-size: clamp(30px, 8vw, 40px); /* Use clamp for H1 */
    margin-bottom: 15px;
  }
  .page-support__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-support__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 通用按钮适配 */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support 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-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__container,
  .page-support__section,
  .page-support__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 产品展示图区域 (Not applicable to support page directly, but ensuring generic image/grid rules) */
  /* For this support page, contact-methods and guide-steps are grid, will adapt automatically or with column */
  .page-support__contact-methods,
  .page-support__guide-steps {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-support__contact-card,
  .page-support__guide-card {
    padding: 20px;
  }
  .page-support__contact-card img {
    width: 100%;
    max-width: unset; /* Override max-width for smaller screens */
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-support__section-title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 15px;
  }
  .page-support__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  /* .page-support__article-body (if present) - generic paragraph/list styling */
  .page-support p, .page-support li {
    font-size: 15px;
  }

  /* FAQ Section Mobile */
  details.page-support__faq-item summary.page-support__faq-question { padding: 15px; }
  .page-support__faq-qtext { font-size: 15px; }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }

  /* Responsible Gaming Section Mobile */
  .page-support__responsible-gaming-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-support__responsible-gaming-content img {
    width: 100%;
    max-width: 100%;
  }
  .page-support__responsible-gaming-text ul {
    padding-left: 25px; /* Adjust padding for smaller screens */
  }

  /* Policies Section Mobile */
  .page-support__policy-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .page-support__policy-link {
    width: calc(100% - 30px); /* Full width with padding */
    text-align: center;
  }
}