/* Base styles for the payment methods page */
.page-payment-methods {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-payment-methods__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-payment-methods__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-offset, 120px) 5%; /* Use var for offset, default 120px */
  padding-bottom: 80px;
  min-height: 600px;
  gap: 40px;
  background-color: #1a1a2e; /* Match body background for consistency */
  color: #ffffff;
}

.page-payment-methods__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-payment-methods__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-payment-methods__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-payment-methods__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-payment-methods__section {
  padding: 80px 5%;
  text-align: center;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

.page-payment-methods__section-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  line-height: 1.7;
  color: inherit;
}

.page-payment-methods__content-image {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
}

/* Grid for Payment Methods */
.page-payment-methods__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-payment-methods__card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-payment-methods__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-payment-methods__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__card-text {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-payment-methods__card-list {
  list-style: disc inside;
  padding-left: 0;
  color: #f0f0f0;
}

.page-payment-methods__card-list li {
  margin-bottom: 5px;
}

/* Withdrawal Guide */
.page-payment-methods__withdrawal-guide {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-payment-methods__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__step-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  flex: 1 1 calc(25% - 30px);
  min-width: 250px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-payment-methods__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-payment-methods__step-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-payment-methods__step-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-payment-methods__important-notes {
  max-width: 900px;
  margin: 60px auto 0 auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-payment-methods__important-notes-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #26A9E0;
  text-align: center;
}

.page-payment-methods__notes-list {
  list-style: none;
  padding-left: 0;
  color: #f0f0f0;
}

.page-payment-methods__notes-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-payment-methods__notes-list li::before {
  content: '⚠️';
  position: absolute;
  left: 0;
  top: 0;
}

/* Security Info */
.page-payment-methods__security-info {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-payment-methods__security-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  flex: 1 1 calc(33% - 30px);
  min-width: 280px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-payment-methods__feature-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
}

.page-payment-methods__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-payment-methods__feature-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  background-color: #ffffff;
  color: #333333;
}

.page-payment-methods__faq-container {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-payment-methods__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
}

.page-payment-methods__faq-question:hover {
  background-color: #e0f7fa; /* Light blue hover */
}

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

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #ffffff;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px !important;
}

/* CTA Section */
.page-payment-methods__cta-section {
  background-color: #1a1a2e;
  color: #ffffff;
  padding: 80px 5%;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

.page-payment-methods__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-payment-methods__btn-primary:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Responsive Styles */

/* Desktop/Tablet - 1024px */
@media (max-width: 1024px) {
  .page-payment-methods__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 60px;
  }

  .page-payment-methods__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .page-payment-methods__hero-title {
    font-size: 2.8em;
  }

  .page-payment-methods__hero-image-wrapper {
    order: -1; /* Image appears above content on smaller screens */
  }

  .page-payment-methods__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-payment-methods__step-item {
    flex: 1 1 calc(50% - 30px);
  }

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

  .page-payment-methods__section-title {
    font-size: 2.2em;
  }

  .page-payment-methods__section-description {
    font-size: 1em;
  }
}

/* Mobile - 768px */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-payment-methods__hero-section {
    flex-direction: column;
    padding: 0 15px 40px 15px !important; /* Adjust padding for mobile, assuming shared handles body padding-top */
    text-align: center;
    min-height: auto;
  }
  
  .page-payment-methods__hero-content {
    margin-bottom: 30px;
  }

  .page-payment-methods__hero-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }

  .page-payment-methods__hero-description {
    font-size: 0.95em !important;
    margin-bottom: 25px;
  }

  .page-payment-methods__hero-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 其他内容模块 */
  .page-payment-methods__section {
    padding: 40px 15px !important;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-payment-methods__section-description {
    font-size: 0.9em !important;
    margin-bottom: 30px;
  }

  /* 产品展示图区域 (Grid) */
  .page-payment-methods__grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__card {
    padding: 20px !important;
  }

  .page-payment-methods__card-title {
    font-size: 1.5em !important;
  }

  .page-payment-methods__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 通用图片与容器 */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__important-notes,
  .page-payment-methods__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  /* 按钮与按钮容器 */
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods 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: 12px 20px !important;
    font-size: 1em !important;
  }
  
  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  /* Withdrawal Guide Steps */
  .page-payment-methods__steps {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  .page-payment-methods__step-item {
    flex: 1 1 100%;
    min-width: unset;
    padding: 20px;
  }

  .page-payment-methods__important-notes {
    padding: 20px !important;
  }

  .page-payment-methods__important-notes-title {
    font-size: 1.6em !important;
  }

  /* Security Features */
  .page-payment-methods__security-features {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  .page-payment-methods__feature-item {
    flex: 1 1 100%;
    min-width: unset;
    padding: 20px;
  }

  .page-payment-methods__feature-icon {
    width: 150px !important;
    height: 150px !important;
  }

  .page-payment-methods__feature-title {
    font-size: 1.4em !important;
  }

  /* FAQ */
  .page-payment-methods__faq-question {
    font-size: 1em !important;
    padding: 15px !important;
  }

  .page-payment-methods__faq-answer {
    padding: 15px !important;
  }

  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px !important;
  }

  .page-payment-methods__faq-toggle {
    font-size: 1.2em !important;
  }
}