.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

.page-payment-methods__hero-section {
  position: relative;
  padding: 80px 20px 40px;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.page-payment-methods__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  font-weight: bold;
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Apply grayscale to image in hero background */
}

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

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

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

.page-payment-methods__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

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

.page-payment-methods__method-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

.page-payment-methods__method-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__method-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__method-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
  width: 100%;
  max-width: 250px;
}

.page-payment-methods__method-features li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #333333;
  font-size: 0.95em;
}

.page-payment-methods__feature-icon {
  color: #017439;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  background: #017439;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
  font-size: 1em;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #017439;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
  border: 2px solid #017439;
  font-size: 1em;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  transform: translateY(-2px);
}

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

.page-payment-methods__dark-section .page-payment-methods__section-title,
.page-payment-methods__dark-section .page-payment-methods__section-description {
  color: #ffffff;
}

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

.page-payment-methods__withdrawal-note {
  font-style: italic;
  text-align: center;
  margin-top: 40px;
  font-size: 1em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-payment-methods__dark-section .page-payment-methods__withdrawal-note {
  color: #f0f0f0;
}

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

.page-payment-methods__guide-step {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e0e0e0;
}

.page-payment-methods__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(1, 116, 57, 0.3);
}

.page-payment-methods__step-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__step-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

.page-payment-methods__step-text a {
  color: #017439;
  text-decoration: underline;
}

.page-payment-methods__guide-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: #555555;
  font-size: 1em;
}

.page-payment-methods__guide-note a {
  color: #017439;
  text-decoration: underline;
}

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

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

.page-payment-methods__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.page-payment-methods__faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-payment-methods__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #fefefe;
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-payment-methods__faq-item summary:hover {
  background-color: #f0f0f0;
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  border-top: 1px solid #eee;
}

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

.page-payment-methods__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

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

.page-payment-methods__cta-bottom .page-payment-methods__dark-bg {
  background: #017439;
  color: #ffffff;
  padding: 50px 30px;
  border-radius: 15px;
}

.page-payment-methods__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__cta-description a {
  color: #FFFF00;
  text-decoration: underline;
}

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

/* Custom button styles for Register/Login */
.page-payment-methods__btn-primary[href*="redirect?plink_id"] {
  background-color: #C30808;
  color: #FFFF00; /* Register and Login font color */
  border-color: #C30808;
}

.page-payment-methods__btn-primary[href*="redirect?plink_id"]:hover {
  background-color: #a30606;
}

.page-payment-methods__btn-secondary[href*="redirect?plink_id"] {
  background-color: #C30808;
  color: #FFFF00; /* Register and Login font color */
  border-color: #C30808;
}

.page-payment-methods__btn-secondary[href*="redirect?plink_id"]:hover {
  background-color: #a30606;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 2.8em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__method-card {
    padding: 25px;
  }
  .page-payment-methods__guide-step {
    padding: 25px;
  }
  .page-payment-methods__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__section {
    padding: 40px 15px;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-description {
    font-size: 0.95em;
  }
  .page-payment-methods__method-grid,
  .page-payment-methods__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__hero-cta-buttons,
  .page-payment-methods__cta-bottom .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__method-icon {
    max-width: 100%;
    min-height: 200px;
  }
  .page-payment-methods__cta-title {
    font-size: 1.8em;
  }
  .page-payment-methods__cta-description {
    font-size: 1em;
  }
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__guide-step,
  .page-payment-methods__cta-bottom .page-payment-methods__dark-bg {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-payment-methods__faq-item summary {
    padding: 15px 20px;
    font-size: 1.05em;
  }
  .page-payment-methods__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-payment-methods__cta-bottom .page-payment-methods__dark-bg {
    padding: 40px 20px;
  }
}

/* Ensure no image filter */
.page-payment-methods img {
  filter: none; /* No CSS filters to change image color */
}

.page-payment-methods__hero-image-wrapper .page-payment-methods__hero-image {
  filter: grayscale(100%); /* This is allowed for background aesthetic, not changing content image color */
}