/* style/payment-methods.css */

/* Base styles for the page */
.page-payment-methods {
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header, default 120px if not set by shared */
  background-color: var(--bg-dark, #0d0d0d); /* Assuming a dark background from shared.css */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-payment-methods__container--centered {
  text-align: center;
}

.page-payment-methods__section {
  padding: 80px 0;
}

.page-payment-methods__section--overview {
  background-color: var(--bg-dark-alt, #1a1a1a);
}

.page-payment-methods__section--deposit-methods {
  background-color: var(--bg-dark, #0d0d0d);
}

.page-payment-methods__section--deposit-guide {
  background-color: var(--bg-dark-alt, #1a1a1a);
}

.page-payment-methods__section--withdrawal-methods {
  background-color: var(--bg-dark, #0d0d0d);
}

.page-payment-methods__section--withdrawal-guide {
  background-color: var(--bg-dark-alt, #1a1a1a);
}

.page-payment-methods__section--security {
  background-color: var(--bg-dark, #0d0d0d);
}

.page-payment-methods__section--faq {
  background-color: var(--bg-dark-alt, #1a1a1a);
}

.page-payment-methods__section--contact-cta {
  background-color: var(--bg-dark, #0d0d0d);
}

/* Typography */
.page-payment-methods__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Gold color */
  text-align: center;
  margin-bottom: 20px;
}

.page-payment-methods__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold color */
  text-align: center;
  margin-bottom: 40px;
}

.page-payment-methods__guide-title,
.page-payment-methods__method-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700; /* Gold color */
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-payment-methods__paragraph,
.page-payment-methods__intro-text,
.page-payment-methods__method-description,
.page-payment-methods__note,
.page-payment-methods__copyright,
.page-payment-methods__security-list li {
  font-size: 18px;
  color: #f0f0f0; /* Light grey for body text */
  margin-bottom: 15px;
}

.page-payment-methods__intro-text {
  font-size: 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-payment-methods__guide-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-payment-methods__guide-list li {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-payment-methods__security-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-payment-methods__security-list li strong {
  color: #FFD700;
}

/* Hero Banner Section */
.page-payment-methods__hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  min-height: 600px;
  background-color: var(--bg-dark, #0d0d0d);
}

.page-payment-methods__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the background image */
  display: block;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
}

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

.page-payment-methods__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-payment-methods__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #0d0d0d; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

.page-payment-methods__btn-primary:hover {
  background-color: #e0b000;
  border-color: #e0b000;
  color: #ffffff;
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #FFD700;
  color: #0d0d0d;
}

/* Method Grid */
.page-payment-methods__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__method-grid--single {
  grid-template-columns: 1fr;
  max-width: 600px; /* Limit width for single column grid */
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__method-card {
  background-color: var(--bg-card, #2a2a2a);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-payment-methods__method-icon {
  width: 100%; /* Ensure icon container fills card width */
  max-width: 150px; /* Limit actual icon size */
  height: auto;
  margin: 0 auto 20px auto;
  overflow: hidden;
  border-radius: 5px;
}

.page-payment-methods__method-icon img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* Ensure image fits without cropping */
}

/* Guide Items */
.page-payment-methods__guide-item {
  background-color: var(--bg-card, #2a2a2a);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
}

.page-payment-methods__security-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 8px;
}

/* Images Global */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Footer Info */
.page-payment-methods__footer-info {
  background-color: var(--bg-dark-footer, #121212);
  padding: 30px 0;
  text-align: center;
  margin-top: 50px;
}

.page-payment-methods__copyright {
  font-size: 16px;
  color: #8b8b8b;
  margin: 0;
}

/* FAQ styles */
.page-payment-methods__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-payment-methods__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-card-alt, #3a3a3a); /* Darker background for answer */
  color: #f0f0f0; /* Light text */
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important; /* 🚨 Using !important ensures priority, value large enough */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-card, #2a2a2a);
  border: 1px solid var(--border-color, #444);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-payment-methods__faq-question:hover {
  background: var(--bg-card-hover, #3a3a3a);
  border-color: #FFD700;
}

.page-payment-methods__faq-question:active {
  background: var(--bg-card-active, #4a4a4a);
}

.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold color for question title */
  pointer-events: none;
}

.page-payment-methods__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-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  color: #ffffff; /* White color when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


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

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 40px;
  }

  .page-payment-methods__section-title {
    font-size: 30px;
  }

  .page-payment-methods__guide-title,
  .page-payment-methods__method-title {
    font-size: 22px;
  }

  .page-payment-methods__paragraph,
  .page-payment-methods__intro-text,
  .page-payment-methods__method-description,
  .page-payment-methods__note,
  .page-payment-methods__copyright,
  .page-payment-methods__security-list li {
    font-size: 16px;
  }

  .page-payment-methods__section {
    padding: 60px 0;
  }

  .page-payment-methods__hero-banner {
    padding: 80px 0;
    min-height: 500px;
  }

  .page-payment-methods__method-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-payment-methods__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 80%;
    max-width: 300px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-payment-methods {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    font-size: 16px;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-payment-methods__hero-banner {
    padding: 60px 0;
    min-height: 400px;
  }

  .page-payment-methods__hero-content {
    padding: 15px;
  }

  .page-payment-methods__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-payment-methods__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-payment-methods__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-payment-methods__guide-title,
  .page-payment-methods__method-title {
    font-size: 20px;
  }

  .page-payment-methods__paragraph,
  .page-payment-methods__note,
  .page-payment-methods__security-list li {
    font-size: 15px;
  }

  .page-payment-methods__section {
    padding: 40px 0;
  }

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

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

  .page-payment-methods__hero-image-container,
  .page-payment-methods__method-icon,
  .page-payment-methods__guide-image,
  .page-payment-methods__security-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 按钮与按钮容器 */
  .page-payment-methods__cta-group {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px;
  }

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

  /* 其他内容模块 */
  .page-payment-methods__method-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-payment-methods__method-card {
    padding: 20px;
  }

  .page-payment-methods__guide-item {
    padding: 20px;
  }

  .page-payment-methods__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-payment-methods__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
    color: #FFD700; /* Ensure gold color for question title on mobile */
  }
  
  .page-payment-methods__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
    color: #FFD700; /* Ensure gold color for toggle on mobile */
  }
  
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px !important;
  }

  .page-payment-methods__footer-info {
    padding: 20px 0;
  }

  .page-payment-methods__copyright {
    font-size: 14px;
  }
}