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

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: #017439; /* Brand color as hero background */
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

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

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

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

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

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles in light sections */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  color: #555555; /* Darker text for light sections */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-payment-methods__dark-bg {
  background-color: #0a0a0a; /* Dark body background */
  color: #ffffff;
}

.page-payment-methods__dark-bg .page-payment-methods__section-title {
  color: #ffffff; /* White for titles in dark sections */
}

.page-payment-methods__dark-bg .page-payment-methods__section-description,
.page-payment-methods__dark-bg .page-payment-methods__step-text,
.page-payment-methods__dark-bg .page-payment-methods__feature-text,
.page-payment-methods__dark-bg .page-payment-methods__security-text {
  color: #f0f0f0;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-payment-methods__btn-primary {
  background-color: #C30800; /* Custom color for Register/Login buttons */
  color: #FFFF00; /* Custom font color for Register/Login */
}

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

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-payment-methods__overview-section .page-payment-methods__section-title,
.page-payment-methods__deposit-methods .page-payment-methods__section-title,
.page-payment-methods__important-notes .page-payment-methods__section-title,
.page-payment-methods__faq-section .page-payment-methods__section-title {
  color: #017439;
}

.page-payment-methods__overview-section .page-payment-methods__section-description,
.page-payment-methods__deposit-methods .page-payment-methods__section-description,
.page-payment-methods__important-notes .page-payment-methods__section-description,
.page-payment-methods__faq-section .page-payment-methods__section-description {
  color: #555555;
}

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

.page-payment-methods__feature-item,
.page-payment-methods__security-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards in dark sections */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__light-bg .page-payment-methods__feature-item,
.page-payment-methods__light-bg .page-payment-methods__security-item {
  background-color: #f8f8f8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__feature-icon,
.page-payment-methods__security-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-payment-methods__feature-title,
.page-payment-methods__security-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ffffff; /* White for titles in dark cards */
}

.page-payment-methods__light-bg .page-payment-methods__feature-title,
.page-payment-methods__light-bg .page-payment-methods__security-title {
  color: #017439;
}

.page-payment-methods__feature-text,
.page-payment-methods__security-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-payment-methods__light-bg .page-payment-methods__feature-text,
.page-payment-methods__light-bg .page-payment-methods__security-text {
  color: #555555;
}

.page-payment-methods__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-payment-methods__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__step-title {
  font-size: 1.6em;
  color: #FFFF00; /* Custom color for step titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__step-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

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

.page-payment-methods__cta-block {
  text-align: center;
  margin-top: 40px;
}

.page-payment-methods__method-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: #f8f8f8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

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

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

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

.page-payment-methods__note-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-payment-methods__note-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-payment-methods__note-text {
  font-size: 1.1em;
  color: #555555;
}

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

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

.page-payment-methods__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #e8e8e8;
  color: #017439;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: #dcdcdc;
}

.page-payment-methods__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #017439;
}

.page-payment-methods__faq-toggle {
  font-size: 1.8em;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-payment-methods__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  color: #555555;
}

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

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

.page-payment-methods__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* 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__features-grid,
  .page-payment-methods__methods-grid,
  .page-payment-methods__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-payment-methods__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .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__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__features-grid,
  .page-payment-methods__methods-grid,
  .page-payment-methods__security-grid {
    grid-template-columns: 1fr;
  }

  .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__hero-section,
  .page-payment-methods__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

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

  .page-payment-methods__step-title,
  .page-payment-methods__method-title,
  .page-payment-methods__note-title,
  .page-payment-methods__faq-title,
  .page-payment-methods__feature-title,
  .page-payment-methods__security-title {
    font-size: 1.3em;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}