.page-payment-methods {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a1a2e), so text should be light */
  background-color: transparent; /* Main content background is transparent to allow body background */
}

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  margin-top: 100px; /* Adjust to ensure content is below header */
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-payment-methods__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-payment-methods__btn-secondary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #005a2e;
  color: #FFFFFF;
}

.page-payment-methods__btn-large {
  min-width: 200px;
}

.page-payment-methods__section {
  padding: 60px 20px;
  text-align: center;
}

.page-payment-methods__introduction-section {
  background-color: #ffffff;
  color: #333333;
}

.page-payment-methods__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #017439;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-payment-methods__paragraph {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 20px;
  color: inherit;
}

.page-payment-methods__highlight {
  color: #017439;
  font-weight: bold;
}

.page-payment-methods__methods-section {
  background-color: #f5f5f5;
  color: #333333;
}

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

.page-payment-methods__method-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-payment-methods__method-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

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

.page-payment-methods__method-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

.page-payment-methods__process-section {
  background-color: #017439;
  color: #ffffff;
}

.page-payment-methods__process-section .page-payment-methods__section-title {
  color: #ffffff;
}

.page-payment-methods__process-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto;
}

.page-payment-methods__process-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  color: #ffffff;
}

.page-payment-methods__card-title {
  font-size: 1.8rem;
  color: #FFFF00; /* Register/Login font color */
  margin-bottom: 20px;
  font-weight: 600;
}

.page-payment-methods__ordered-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-payment-methods__ordered-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 30px;
}

.page-payment-methods__ordered-list li::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FFFF00; /* Register/Login font color */
  color: #017439;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.page-payment-methods__list-item-title {
  color: #ffffff;
}

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

.page-payment-methods__process-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__security-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-payment-methods__feature-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: left;
  color: #333333;
  height: 100%;
}

.page-payment-methods__feature-card .page-payment-methods__card-title {
  font-size: 1.4rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-payment-methods__feature-card .page-payment-methods__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
}

.page-payment-methods__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__tips-section {
  background-color: #f5f5f5;
  color: #333333;
}

.page-payment-methods__unordered-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-payment-methods__unordered-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 25px;
  color: #333333;
}

.page-payment-methods__unordered-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #017439;
  font-weight: bold;
}

.page-payment-methods__faq-section {
  background-color: #017439;
  color: #ffffff;
}

.page-payment-methods__faq-section .page-payment-methods__section-title {
  color: #ffffff;
}

.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

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

.page-payment-methods__faq-qtext {
  flex-grow: 1;
}

.page-payment-methods__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Register/Login font color */
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-payment-methods__faq-answer p {
  margin-bottom: 0;
}

.page-payment-methods__faq-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__cta-final-section {
  background-color: #ffffff;
  color: #333333;
  padding-bottom: 80px;
}

.page-payment-methods__cta-final-section .page-payment-methods__section-title {
  color: #017439;
}

.page-payment-methods__cta-final-section .page-payment-methods__paragraph {
  color: #555555;
  margin-bottom: 40px;
}

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

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

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

  .page-payment-methods__hero-content {
    margin-top: 50px;
    padding: 30px 15px;
  }

  .page-payment-methods__main-title {
    font-size: 2rem;
  }

  .page-payment-methods__hero-description {
    font-size: 1rem;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-payment-methods__section {
    padding: 40px 15px;
  }

  .page-payment-methods__section-title {
    font-size: 1.8rem;
  }

  .page-payment-methods__paragraph {
    font-size: 1rem;
  }

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

  .page-payment-methods__method-card,
  .page-payment-methods__process-card,
  .page-payment-methods__feature-card,
  .page-payment-methods__faq-item {
    padding: 20px;
  }

  .page-payment-methods__method-title {
    font-size: 1.3rem;
  }

  .page-payment-methods__card-title {
    font-size: 1.5rem;
  }

  .page-payment-methods__ordered-list li,
  .page-payment-methods__unordered-list li {
    font-size: 1rem;
    padding-left: 20px;
  }

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

  .page-payment-methods__faq-toggle {
    font-size: 1.5rem;
  }

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

  /* Mobile image responsiveness enforcement */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-payment-methods__hero-section,
  .page-payment-methods__section,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__process-card,
  .page-payment-methods__feature-card,
  .page-payment-methods__faq-item,
  .page-payment-methods__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* body has header-offset, so small top padding for hero */
  }

  .page-payment-methods__method-icon,
  .page-payment-methods__process-image,
  .page-payment-methods__security-image,
  .page-payment-methods__faq-image {
    min-width: unset;
    min-height: unset;
  }
}

/* Ensure contrast for dark background body */
.page-payment-methods__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-payment-methods__dark-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

.page-payment-methods__light-bg .page-payment-methods__highlight {
  color: #017439;
}

.page-payment-methods__light-bg .page-payment-methods__section-title {
  color: #017439;
}

.page-payment-methods__light-bg .page-payment-methods__card-title {
  color: #017439;
}

.page-payment-methods__light-bg .page-payment-methods__card-description {
  color: #555555;
}

.page-payment-methods a {
  color: #FFFF00; /* Link color for content */
  text-decoration: underline;
}

.page-payment-methods a:hover {
  color: #f0f0f0;
}