/* style/payment-methods.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-payment-methods {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #FFFFFF;
}

/* Smart color contrast for sections/cards */
.page-payment-methods__dark-bg {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff; /* White text for dark background */
}

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no overflow from image */
}

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

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 250px; /* Ensure minimum size */
}

.page-payment-methods__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure content takes full width up to max-width */
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 20px; /* Space between image and text */
}

.page-payment-methods__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
  font-weight: 700;
  color: #ffffff; /* White text on dark hero background */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-payment-methods__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-payment-methods__cta-buttons--center {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-payment-methods__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-payment-methods__btn-primary:hover {
  background-color: #d46c06;
}

.page-payment-methods__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Main brand color for secondary action */
  border: 2px solid #26A9E0;
}

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

.page-payment-methods__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-payment-methods__subsection-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

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

.page-payment-methods__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: inherit;
}

.page-payment-methods__text-block a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
}
.page-payment-methods__text-block a:hover {
  color: #1e87b7;
}

.page-payment-methods__deposit-methods,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__transaction-guide,
.page-payment-methods__important-notes,
.page-payment-methods__faq-section,
.page-payment-methods__call-to-action-section {
  padding: 60px 0;
}

.page-payment-methods__deposit-methods .page-payment-methods__container,
.page-payment-methods__call-to-action-section .page-payment-methods__container {
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 12px;
  padding: 60px 40px;
}

.page-payment-methods__methods-grid,
.page-payment-methods__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__card,
.page-payment-methods__step-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease;
}

.page-payment-methods__card:hover,
.page-payment-methods__step-card:hover {
  transform: translateY(-5px);
}

.page-payment-methods__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

.page-payment-methods__card-title,
.page-payment-methods__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-payment-methods__card-description,
.page-payment-methods__step-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

.page-payment-methods__list {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
  color: #555555;
}

.page-payment-methods__list li {
  margin-bottom: 8px;
}

.page-payment-methods__checklist {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-payment-methods__checklist li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%2326A9E0" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 24px;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #333333;
}

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

.page-payment-methods__faq-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* For details tag */
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  user-select: none;
}
.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

.page-payment-methods__faq-question::-webkit-details-marker,
.page-payment-methods__faq-question::marker {
  display: none;
  content: "";
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #26A9E0;
  margin-left: 10px;
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #555555;
  background-color: #ffffff;
}
.page-payment-methods__faq-answer p {
  margin-bottom: 10px;
}
.page-payment-methods__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}
.page-payment-methods__faq-answer a:hover {
  color: #1e87b7;
}

/* Global image styles */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no CSS filter is applied */
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(24px, 8vw, 40px);
  }

  .page-payment-methods__hero-description {
    font-size: clamp(15px, 4vw, 18px);
  }

  .page-payment-methods__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__deposit-methods .page-payment-methods__container,
  .page-payment-methods__call-to-action-section .page-payment-methods__container {
    padding: 40px 20px;
  }

  .page-payment-methods__section-title {
    font-size: clamp(20px, 6vw, 30px);
  }

  .page-payment-methods__subsection-title {
    font-size: clamp(18px, 5vw, 24px);
  }

  .page-payment-methods__methods-grid,
  .page-payment-methods__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__card,
  .page-payment-methods__step-card {
    padding: 20px;
  }

  .page-payment-methods__card-title,
  .page-payment-methods__step-title {
    font-size: 20px;
  }

  .page-payment-methods__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-payment-methods__faq-answer {
    padding: 10px 20px 15px;
    font-size: 15px;
  }

  /* Mobile image specific rules */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Mobile video specific rules (if any video is added) */
  .page-payment-methods video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile button specific rules */
  .page-payment-methods__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure containers with images/videos/buttons don't overflow */
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__video-section,
  .page-payment-methods__video-container,
  .page-payment-methods__video-wrapper,
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .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;
    overflow: hidden !important; /* Crucial for preventing horizontal scroll */
  }
  .page-payment-methods__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}