.page-payment-methods {
  background-color: var(--bg-color-main, #0A0A0A); /* Fallback to custom bg if shared not loaded */
  color: var(--text-main-color, #FFF6D6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* HERO Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 40px;
  background-color: #0A0A0A;
}

.page-payment-methods__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-payment-methods__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop, will change to contain for mobile */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #FFD36B; /* Use auxiliary color for highlight */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-payment-methods__description {
  font-size: 1.15rem;
  color: #FFF6D6;
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-payment-methods__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* White text on dark/gradient button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-payment-methods__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

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

.page-payment-methods__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-payment-methods__section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-payment-methods__section:last-of-type {
  border-bottom: none;
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #FFD36B;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-payment-methods__sub-title {
  font-size: 1.8rem;
  color: #F2C14E; /* Main color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #FFF6D6; /* Main text color */
}

.page-payment-methods__text-block a {
  color: #FFD36B; /* Link color */
  text-decoration: underline;
}

.page-payment-methods__text-block a:hover {
  color: #F2C14E;
}

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

.page-payment-methods__method-card {
  background: #111111; /* Card background color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
}

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

.page-payment-methods__method-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as block for max-width */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-payment-methods__card-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__method-card p {
  font-size: 1rem;
  color: #FFF6D6;
  flex-grow: 1;
}

/* Lists */
.page-payment-methods__ordered-list,
.page-payment-methods__unordered-list {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-payment-methods__ordered-list li,
.page-payment-methods__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-payment-methods__ordered-list li strong,
.page-payment-methods__unordered-list li strong {
  color: #F2C14E;
}

/* Article Figure (Image with caption) */
.page-payment-methods__article-figure {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  background: #111111;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #3A2A12;
}

.page-payment-methods__article-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  border-radius: 8px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-payment-methods__figcaption {
  font-size: 0.95rem;
  color: #FFF6D6;
  font-style: italic;
}

/* Security & Privacy Section (Darker background) */
.page-payment-methods__dark-section {
  background-color: #0A0A0A; /* Use the main background color */
  color: #FFF6D6;
}

.page-payment-methods__dark-section .page-payment-methods__section-title {
  color: #FFD36B;
}

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

.page-payment-methods__feature-item {
  background: #111111;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
}

.page-payment-methods__feature-title {
  font-size: 1.4rem;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__feature-item p {
  font-size: 1rem;
  color: #FFF6D6;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 40px;
}

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111; /* Card background for FAQ items */
  color: #FFF6D6;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF6D6;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: rgba(255, 211, 107, 0.05); /* Subtle hover effect */
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Question text color */
}
.page-payment-methods__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: #FFD36B; /* Toggle icon color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Adjust size */
  text-align: center;
  line-height: 1;
}
details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 25px 20px;
  background: #0A0A0A; /* Inner background for answer */
  border-radius: 0 0 12px 12px;
  color: #FFF6D6;
  font-size: 1rem;
}
.page-payment-methods__faq-answer p {
  margin: 0;
  padding: 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__container {
    padding: 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-payment-methods__description {
    font-size: 1rem;
  }
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
  }
  .page-payment-methods__sub-title {
    font-size: 1.6rem;
  }
  .page-payment-methods__text-block {
    font-size: 1rem;
  }
  .page-payment-methods__method-card img,
  .page-payment-methods__article-figure img {
    min-
    min-
  }
  .page-payment-methods__faq-qtext {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-payment-methods__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 30px;
  }
  .page-payment-methods__hero-image {
    max-height: 400px; /* Adjust max height for mobile hero */
  }
  .page-payment-methods__hero-image img {
    object-fit: contain !important; /* Force contain for mobile hero image */
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-payment-methods__hero-content {
    padding: 0 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-payment-methods__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* 按钮与按钮容器 */
  .page-payment-methods__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-payment-methods__section,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__feature-item,
  .page-payment-methods__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__method-card img,
  .page-payment-methods__article-figure img {
    min-width: 200px;
    min-height: 200px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 25px;
    padding: 0 10px;
  }
  .page-payment-methods__sub-title {
    font-size: 1.4rem;
    padding: 0 10px;
  }
  .page-payment-methods__text-block {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  .page-payment-methods__ordered-list,
  .page-payment-methods__unordered-list {
    padding-left: 30px; /* Keep some padding for list bullets */
    padding-right: 10px;
  }
  .page-payment-methods__ordered-list li,
  .page-payment-methods__unordered-list li {
    font-size: 0.95rem;
  }
  .page-payment-methods__article-figure {
    padding: 15px;
  }
  .page-payment-methods__figcaption {
    font-size: 0.85rem;
  }

  /* Sản phẩm/Dịch vụ/Tính năng lưới (áp dụng chung cho grids) */
  .page-payment-methods__methods-grid,
  .page-payment-methods__features-grid {
    grid-template-columns: 1fr; /* Single column for grids */
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__method-card,
  .page-payment-methods__feature-item {
    padding: 20px;
  }
  .page-payment-methods__card-title,
  .page-payment-methods__feature-title {
    font-size: 1.3rem;
  }

  /* FAQ */
  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px 20px;
  }
  .page-payment-methods__faq-qtext {
    font-size: 1rem;
  }
  .page-payment-methods__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
}