:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --bg-color-dark: #121212;
  --bg-color-light: #f8f9fa;
  --border-color: #333;
}

.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--bg-color-dark);
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-payment-methods__hero-section,
.page-payment-methods__dark-bg {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark-bg);
}

.page-payment-methods__light-bg {
  background-color: var(--bg-color-light);
  color: var(--text-color-light-bg);
}

.page-payment-methods__hero-section {
  padding: 80px 20px;
  text-align: center;
}

.page-payment-methods__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-dark-bg);
  font-weight: bold;
}

.page-payment-methods__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

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

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.page-payment-methods__cta-button--secondary {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.page-payment-methods__cta-button--secondary:hover {
  background-color: #e0a800;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
  font-weight: bold;
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  opacity: 0.9;
}

.page-payment-methods__overview-section,
.page-payment-methods__details-section,
.page-payment-methods__guide-section,
.page-payment-methods__security-section,
.page-payment-methods__tips-faq-section,
.page-payment-methods__cta-bottom-section {
  padding: 80px 0;
}

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

.page-payment-methods__method-card {
  background: #ffffff;
  color: var(--text-color-light-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-payment-methods__method-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__method-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-payment-methods__method-description {
  font-size: 1em;
  line-height: 1.7;
  opacity: 0.8;
}

.page-payment-methods__method-detail {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods__detail-title {
  font-size: 2em;
  margin-bottom: 25px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-payment-methods__detail-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin: 25px auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__method-detail p {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.8;
  opacity: 0.9;
}

.page-payment-methods__method-detail ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.05em;
  opacity: 0.9;
}

.page-payment-methods__method-detail ul li {
  margin-bottom: 8px;
}

.page-payment-methods__detail-cta {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

.page-payment-methods__detail-cta:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.page-payment-methods__guide-block {
  background-color: #ffffff;
  color: var(--text-color-light-bg);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-payment-methods__guide-title {
  font-size: 2em;
  margin-bottom: 25px;
  color: var(--primary-color);
  font-weight: bold;
  text-align: center;
}

.page-payment-methods__guide-block ol {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-payment-methods__guide-block ol li {
  margin-bottom: 10px;
}

.page-payment-methods__guide-block strong {
  color: var(--primary-color);
}

.page-payment-methods__guide-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-payment-methods__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-payment-methods__feature-item p {
  font-size: 0.95em;
  line-height: 1.7;
  opacity: 0.8;
}

.page-payment-methods__tips-block ul {
  list-style-type: disc;
  margin-left: 40px;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-color-light-bg);
}

.page-payment-methods__tips-block ul li {
  margin-bottom: 10px;
}

.page-payment-methods__faq-block {
  margin-top: 60px;
}

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

/* FAQ容器样式 */
.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.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 25px;
  opacity: 0;
  background: #f0f0f0;
  color: var(--text-color-light-bg);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 25px !important;
  opacity: 1;
  background: #f0f0f0;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  color: var(--text-color-light-bg);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
}

.page-payment-methods__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-payment-methods__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--text-color-light-bg);
}

/* 切换图标 */
.page-payment-methods__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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: var(--primary-color);
  transform: rotate(45deg);
}

/* 底部CTA */
.page-payment-methods__cta-bottom-section {
  text-align: center;
  padding: 100px 20px;
}

/* General image responsive styles */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 2.8em;
  }

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

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

  .page-payment-methods__detail-title {
    font-size: 1.8em;
  }

  .page-payment-methods__guide-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 15px;
    line-height: 1.6;
  }

  .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods__hero-section,
  .page-payment-methods__overview-section,
  .page-payment-methods__details-section,
  .page-payment-methods__guide-section,
  .page-payment-methods__security-section,
  .page-payment-methods__tips-faq-section,
  .page-payment-methods__cta-bottom-section {
    padding: 60px 0;
  }

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

  .page-payment-methods__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }

  .page-payment-methods__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-payment-methods__text-block {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-payment-methods__method-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-payment-methods__method-title {
    font-size: 1.4em;
  }

  .page-payment-methods__method-description {
    font-size: 0.9em;
  }

  .page-payment-methods__method-detail {
    padding: 30px;
    margin-bottom: 30px;
  }

  .page-payment-methods__detail-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .page-payment-methods__detail-image {
    margin: 20px auto;
  }

  .page-payment-methods__method-detail p,
  .page-payment-methods__method-detail ul,
  .page-payment-methods__guide-block ol {
    font-size: 1em;
  }

  .page-payment-methods__detail-cta {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-payment-methods__guide-block {
    padding: 30px;
    margin-bottom: 30px;
  }

  .page-payment-methods__guide-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .page-payment-methods__guide-image {
    margin: 20px auto;
  }

  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-payment-methods__feature-title {
    font-size: 1.3em;
  }

  .page-payment-methods__faq-question {
    padding: 18px 20px;
  }

  .page-payment-methods__faq-question h3 {
    font-size: 1em;
  }

  .page-payment-methods__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

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

  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all containers for images/videos/buttons are responsive */
  .page-payment-methods__hero-section,
  .page-payment-methods__overview-section,
  .page-payment-methods__details-section,
  .page-payment-methods__guide-section,
  .page-payment-methods__security-section,
  .page-payment-methods__tips-faq-section,
  .page-payment-methods__cta-bottom-section,
  .page-payment-methods__payment-methods-grid,
  .page-payment-methods__method-card,
  .page-payment-methods__method-detail,
  .page-payment-methods__guide-block,
  .page-payment-methods__security-features,
  .page-payment-methods__feature-item,
  .page-payment-methods__faq-list,
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-payment-methods__overview-section .page-payment-methods__container,
  .page-payment-methods__details-section .page-payment-methods__container,
  .page-payment-methods__guide-section .page-payment-methods__container,
  .page-payment-methods__security-section .page-payment-methods__container,
  .page-payment-methods__tips-faq-section .page-payment-methods__container,
  .page-payment-methods__cta-bottom-section .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods__tips-block ul {
    margin-left: 20px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 1.8em;
  }

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

  .page-payment-methods__cta-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }

  .page-payment-methods__method-icon {
    width: 70px;
    height: 70px;
  }

  .page-payment-methods__method-title {
    font-size: 1.2em;
  }

  .page-payment-methods__detail-title {
    font-size: 1.4em;
  }

  .page-payment-methods__guide-title {
    font-size: 1.4em;
  }

  .page-payment-methods__feature-icon {
    width: 70px;
    height: 70px;
  }

  .page-payment-methods__feature-title {
    font-size: 1.1em;
  }

  .page-payment-methods__faq-question h3 {
    font-size: 0.95em;
  }

  .page-payment-methods__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
}