.page-payment-methods {
  color: #ffffff; /* Light text on dark body background */
  background-color: #121212; /* Ensure consistency with body background */
}

.page-payment-methods__hero-section {
  position: relative;
  background-color: #017439; /* Brand color for hero background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}
.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}
.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.page-payment-methods__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}
.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
}
.page-payment-methods__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}
.page-payment-methods__btn-register {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color */
}
.page-payment-methods__btn-register:hover {
  background-color: #a00606;
}
.page-payment-methods__btn-login {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color */
}
.page-payment-methods__btn-login:hover {
  background-color: #a00606;
}
.page-payment-methods__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}
.page-payment-methods__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

.page-payment-methods__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.page-payment-methods__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}
.page-payment-methods__section-subtitle {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
}
.page-payment-methods__text-block {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #f0f0f0;
}
.page-payment-methods__content-image {
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
}

.page-payment-methods__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.page-payment-methods__method-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}
.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
}
.page-payment-methods__method-card-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}
.page-payment-methods__method-card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-payment-methods__guide-step {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 30px;
  flex-wrap: wrap;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
}
.page-payment-methods__guide-step:nth-child(even) {
  flex-direction: row-reverse;
}
.page-payment-methods__guide-text {
  flex: 1;
  min-width: 300px;
  color: #f0f0f0;
}
.page-payment-methods__guide-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
}
.page-payment-methods__guide-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}
.page-payment-methods__guide-description {
  line-height: 1.6;
}

.page-payment-methods__security-features ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.page-payment-methods__security-features li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0f0f0;
}
.page-payment-methods__security-features li strong {
  color: #FFFF00;
}

.page-payment-methods__important-notes ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.page-payment-methods__important-notes li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #017439;
  border-radius: 8px;
  color: #f0f0f0;
  line-height: 1.6;
}
.page-payment-methods__important-notes li strong {
  color: #FFFF00;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 60px 20px;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 10px;
}
.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}
.page-payment-methods__faq-question:hover {
  color: #FFFF00;
}
.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}
.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}
.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  line-height: 1.6;
}
.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px;
}

.page-payment-methods__cta-bottom {
  text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-payment-methods__hero-title {
    font-size: 2.5em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__section-subtitle {
    font-size: 1.5em;
  }
  .page-payment-methods__method-grid {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__guide-step {
    flex-direction: column !important;
    gap: 20px;
  }
  .page-payment-methods__guide-step:nth-child(even) {
    flex-direction: column !important;
  }
  .page-payment-methods__guide-image,
  .page-payment-methods__guide-text {
    min-width: unset;
    width: 100%;
  }

  /* Image/Video/Button responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__cta-button,
  .page-payment-methods a[class*="button"],
  .page-payment-methods a[class*="btn"] {
    max-width: 100% !important;
    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__button-group {
    flex-direction: column !important;
    gap: 15px;
  }
  .page-payment-methods__section,
  .page-payment-methods__faq-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile hero section */
  }
}