.page-payment-methods {
  --primary-color: #FFD700;
  --secondary-color: #000000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0d0d0d; /* Giả định dark-bg-1 là rất tối */
  --bg-light: #f8f8f8;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body là nền tối, dùng chữ sáng */
}

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

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

.page-payment-methods__dark-section {
  background-color: var(--secondary-color); /* Nền đen */
  color: var(--text-light);
}

.page-payment-methods__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #333333 100%);
  padding: 120px 0 80px; /* Đệm trên để tránh header cố định */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word;
}

.page-payment-methods__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-payment-methods__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__cta-button--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-payment-methods__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--text-light);
}

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

.page-payment-methods__card {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-payment-methods__feature-icon, .page-payment-methods__method-icon, .page-payment-methods__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-payment-methods__card p {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__method-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  font-size: 0.95em;
}

.page-payment-methods__method-details li {
  margin-bottom: 10px;
  color: var(--text-light);
  padding-left: 20px;
  position: relative;
}

.page-payment-methods__method-details li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
.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;
  background-color: var(--card-bg-dark);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 215, 0, 0.1);
  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: rgba(255, 215, 0, 0.2);
}

.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 28px;
  height: 28px;
}

.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 20px;
  opacity: 0;
  color: var(--text-light);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-payment-methods__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

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

.page-payment-methods__cta-bottom .page-payment-methods__cta-button {
  margin-top: 40px;
  padding: 18px 45px;
  font-size: 1.3em;
  border-radius: 10px;
}

/* 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__hero-description {
    font-size: 1.1em;
  }
  .page-payment-methods__feature-title, .page-payment-methods__method-title, .page-payment-methods__security-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-top: 100px !important; /* Đệm trên cho mobile */
    padding-bottom: 60px;
  }
  .page-payment-methods__main-title {
    font-size: 2.2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-payment-methods__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
  }
  .page-payment-methods__features-grid, .page-payment-methods__method-grid, .page-payment-methods__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-payment-methods__card {
    padding: 25px;
  }
  .page-payment-methods__feature-icon, .page-payment-methods__method-icon, .page-payment-methods__security-icon {
    width: 80px;
    height: 80px;
  }
  .page-payment-methods__feature-title, .page-payment-methods__method-title, .page-payment-methods__security-title {
    font-size: 1.4em;
  }
  .page-payment-methods__faq-question {
    padding: 15px;
  }
  .page-payment-methods__faq-question h3 {
    font-size: 1em;
  }
  .page-payment-methods__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-payment-methods__faq-answer {
    padding: 0 15px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px !important;
  }
  .page-payment-methods__cta-bottom .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__cta-bottom .page-payment-methods__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  /* Ensure all images are responsive and do not overflow */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-payment-methods__container,
  .page-payment-methods__section,
  .page-payment-methods__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-payment-methods__method-details {
    padding-left: 0;
  }
  .page-payment-methods__method-details li {
    padding-left: 15px;
  }
  .page-payment-methods__method-details li::before {
    left: -5px;
  }
}

@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__hero-description {
    font-size: 0.9em;
  }
  .page-payment-methods__cta-bottom .page-payment-methods__section-title {
    font-size: 1.6em;
  }
}